  using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections.Generic;

namespace project.imagenes_dir
{
    public partial class listado_imagenes : System.Web.UI.Page
    {

        protected void Page_Load(object sender, EventArgs e)
        {
            lo.seguridad(sf.entero(HttpContext.Current.Session["adminhondaab1"]));
            if (!Page.IsPostBack)
            {
                List<imagenes> lista = new List<imagenes>();
                if (Request["idarticulo"] != null)
                {
                    hplvolver.Visible = true;
                    hplvolver.NavigateUrl = "../articulos_dir/main_articulos.aspx?id=" + sf.entero(Request["idarticulo"]);
                    lista = imagenes.getListimagenesByidarticulos(sf.entero(Request["idarticulo"]));
                  
                }
                else
                {

                    lista = imagenes.getList();
                }


                Repeater1.DataSource = lista;
                Repeater1.DataBind();
            }

        }
        protected void btnBuscar_Click(object sender, EventArgs e)
        {
            List<imagenes> lista = new List<imagenes>();
            lista = imagenes.getListByBusquedaGeneral(txtBusqueda.Text);
            Repeater1.DataSource = lista;
            Repeater1.DataBind();
        }


    }
}
